/**
* Author: Samfu
* Time  : 下午10:48:37
* Desc  : 
*/
package com.fu.moneybag.service;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.web.multipart.MultipartFile;

import com.fu.moneybag.entity.User;

public interface UserService {

	public int addUser(String username, String password, String email);
	public int deleteUserByuserId(long userId);
	public void updateUserByuserId(long userId, String password);
	//public HashMap<User, String> login(String username, String password);
	public User getUserByUserName(String userName);
	public User checkIfUserExist(String userName);
	public int updateUserName(long id, String username);
	public int updateUserPassword(long id, String password);
	public int updateUserEmail(long id, String email);
	public int updateUserAvartar(HttpServletRequest request, long id, MultipartFile file);
	public User getUserById(long userId);
	public String loginService(String username, String password, HttpSession session, HttpServletRequest request);
	public String indexService(HttpServletRequest request, HttpSession session);
	public User login(String username, String password);
}
